home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Software Contest 3
/
FM Towns Software Contest 3.iso
/
exp
/
video_t
/
no1
/
c_sorse
/
goto.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-01-07
|
4KB
|
164 lines
#include <stdio.h>
#include <stdlib.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>
extern int Dialog_goto ;
extern int _001Message_goto ;
extern int Message_goto ;
extern int Text_goto ;
extern int DButton_gotoon ;
extern int goto_on() ;
extern int DButton_gotooff ;
extern int goto_off() ;
extern int _002Message_goto ;
extern int _003Message_goto ;
#define ALIGN 4
#define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
/* MMI_init 用データ */
/* ヘッダ */
MMIINIT initDataGOTO = { "MmiInit", 8, 0 } ;
/* Dialog_goto */
static MMIPACKET d001 = { &Dialog_goto,
NULL,
&MJ_DIALOGL40,
OFFSET(DIALOGL40),
0
} ;
static DIALOGL40 d001d = { MS_BTLEFTL40 | MS_EVMOSONL40,
95, 61, 333, 192, 0, 7, 0,
MS_SRECTL40 | MS_UFRAMEL40 | MS_FRAMEL40,
NULL, 0, 0
} ;
/* _001Message_goto */
static MMIPACKET d002 = { &_001Message_goto,
&Dialog_goto,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d002d = { MS_CENTERL40 | MS_DSPONLYL40,
119, 106, 208, 129, 0,15, 0,
MS_NONEL40,
"ラベル名",
2, 16, 16,
MS_NONEL40,
3, 0
} ;
/* Message_goto */
static MMIPACKET d003 = { &Message_goto,
&Dialog_goto,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d003d = { MS_CENTERL40 | MS_DSPONLYL40,
102, 66, 326, 89, 0,15,12,
MS_NONEL40,
"ジャンプ位置指定",
2, 16, 16,
MS_NONEL40,
3, 0
} ;
/* Text_goto */
static MMIPACKET d004 = { &Text_goto,
&Dialog_goto,
&MJ_TEXTL40,
OFFSET(TEXTL40),
0
} ;
static TEXTL40 d004d = { MS_BTLEFTL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_HORIL40,
211, 106, 304, 128, 0, 7, 0,
MS_DFRAMEL40 | MS_FRAMEL40,
0,
0, 0, 0, 0,
0, 0, 0, 0, 0,
10, 0, 0,
0, 0, 0, 0,
0,
0, 0, 0, 0,
2, 16, 16, 0, 0,
0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0,
0
} ;
/* DButton_gotoon */
static MMIPACKET d005 = { &DButton_gotoon,
&Dialog_goto,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
0
} ;
static DBUTTONL40 d005d = { MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40,
116, 148, 195, 173, 0, 7, 0,
MS_UFRAMEL40 | MS_FRAMEL40 | MS_DEFAULTL40,
goto_on,
0x0000
} ;
/* DButton_gotooff */
static MMIPACKET d006 = { &DButton_gotooff,
&Dialog_goto,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
0
} ;
static DBUTTONL40 d006d = { MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40,
234, 148, 313, 173, 0, 7, 0,
MS_UFRAMEL40 | MS_FRAMEL40,
goto_off,
0x0000
} ;
/* _002Message_goto */
static MMIPACKET d007 = { &_002Message_goto,
&Dialog_goto,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d007d = { MS_CENTERL40 | MS_DSPONLYL40,
236, 149, 314, 172, 0,15,15,
MS_NONEL40,
"取消",
2, 16, 16,
MS_NONEL40,
16, 0
} ;
/* _003Message_goto */
static MMIPACKET d008 = { &_003Message_goto,
&Dialog_goto,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d008d = { MS_CENTERL40 | MS_DSPONLYL40,
117, 149, 195, 172, 0,15,15,
MS_NONEL40,
"確定",
2, 16, 16,
MS_NONEL40,
16, 0
} ;